<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>学生班级列表</title>
    <script src="/webjars/jquery/3.6.4/dist/jquery.min.js"></script>
    <link rel="stylesheet" href="/webjars/bootstrap/3.4.1/dist/css/bootstrap.min.css">
    <script src="/webjars/bootstrap/3.4.1/dist/js/bootstrap.min.js"></script>
    <style>
        .table{
            text-align: center;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="panel panel-primary">
        <div class="panel-heading">
            <h3 class="panel-title">学生列表</h3>
        </div>
        <table class="table table-hover table-striped">
            <tr>
                <td>学号</td>
                <td>姓名</td>
                <td>性别</td>
                <td>年龄</td>
                <td>住址</td>
                <td>班级</td>
                <td>操作</td>
            </tr>
            <tr th:each="stud: ${dto.students}">
                <td>[[${stud.sid}]]</td>
                <td>[[${stud.sname}]]</td>
                <td>[[${stud.sid}]]</td>
                <td>[[${stud.sid}]]</td>
                <td>[[${stud.sid}]]</td>
                <td>[[${stud.sid}]]</td>
                <td>
                    <a href="#" class="btn btn-success btn-sm">修改</a>
                    <a href="#" class="btn btn-danger btn-sm">删除</a>
                </td>
            </tr>
        </table>
        <div class="panel-footer text-right">
            合众2023.
        </div>
    </div>

    <div class="panel panel-danger">
        <div class="panel-heading">
            <h3 class="panel-title">班级列表</h3>
        </div>
        <table class="table table-hover table-striped">
            <tr>
                <td>班级编号</td>
                <td>班级名称</td>
                <td>操作</td>
            </tr>
            <tr th:each="c: ${dto.classes}">
                <td>[[${c.cid}]]</td>
                <td>[[${c.cname}]]</td>
                <td>
                    <a href="#" class="btn btn-success btn-sm">修改</a>
                    <a href="#" class="btn btn-danger btn-sm">删除</a>
                </td>
            </tr>
        </table>
        <div class="panel-footer text-right">
            合众2023.
        </div>
    </div>
</div>

</body>
</html>